package VN.EDU.IMIC.DEVELOPER.DOMINHNGOC;


	//Chuong trinh vi du loi goi this() constructor (constructor chaining)  
	  
public class Student13{  
	    int id;  
	    String name;  
	    public Student13(){System.out.println("Constructor mac dinh duoc goi");}  
	      
	    public Student13(int id,String name){  
	    this (); //no duoc su dung de goi constructor cua lop hien tai.  
	    this.id = id;  
	    this.name = name;  
	    }  
	    void display(){System.out.println(id+" "+name);}  
	      
	    public static void main(String args[] ){  
	    Student13 e1 = new Student13(111,"Hoang");  
	    Student13 e2 = new Student13(222,"Thanh");  
	    e1.display();  
	    e2.display();  
	   
	}  
	}


